package cn.myjerry.observer2;

public class Client {
	public static void main(String[] args) {
		
		ConcreteSubject subject = new ConcreteSubject();
		
		ObserverA obs1 = new ObserverA();
		ObserverA obs2 = new ObserverA();
		ObserverA obs3 = new ObserverA();

		subject.addObserver(obs1);
		subject.addObserver(obs2);
		subject.addObserver(obs3);
		
		subject.setState(3000);
		
		System.out.println(obs1.getMyState());
		
	}
}
